Skip to content

[GLUTEN-10933][VL]fix: Fix the CudfVector childreSize is not correct#11326

Merged
jinchengchenghh merged 1 commit intoapache:mainfrom
jinchengchenghh:batchsize
Jan 6, 2026
Merged

[GLUTEN-10933][VL]fix: Fix the CudfVector childreSize is not correct#11326
jinchengchenghh merged 1 commit intoapache:mainfrom
jinchengchenghh:batchsize

Conversation

@jinchengchenghh
Copy link
Contributor

@jinchengchenghh jinchengchenghh commented Dec 23, 2025

After this PR facebookincubator/velox#15629, the CudfVector childrenSize is not correct, if correct it, will cause many unit tests fail as this discussion https://github.com/facebookincubator/velox/pull/15629/files#r2572687025, use a work around in Gluten to fix it.

Related issue: #10933

Comment on lines +32 to +37
#ifdef GLUTEN_ENABLE_GPU
// The batch may be CudfVector, it's childrenSize is not correct, many tests failed if correcting the value
// https://github.com/facebookincubator/velox/pull/15629#discussion_r2581655771
VeloxColumnarBatch(facebook::velox::RowVectorPtr rowVector, int32_t numColumns)
: ColumnarBatch(numColumns, rowVector->size()), rowVector_(rowVector) {}
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compared to adding a new ctor, what if we just change the old ctor to call rowVector->rowType()->size()?

By the way. Why childrenSize() is inaccurate for cuDF row vector?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the childrenSize() always returns 0, RowVector contains flatVector, but CudfVector contains cudf::table(contains cudf::column)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jinchengchenghh jinchengchenghh merged commit ac0611a into apache:main Jan 6, 2026
127 of 134 checks passed
QCLyu pushed a commit to QCLyu/incubator-gluten that referenced this pull request Jan 8, 2026
QCLyu pushed a commit to QCLyu/incubator-gluten that referenced this pull request Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants